package com.shine.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.shine.entity.User;
import com.shine.info.UserInfo;
import com.shine.request.UserPageRequest;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import org.apache.ibatis.annotations.Param;

/**
 * @author huihui
 * @date 2025/10/11 15:44
 * @description UserMapper
 */
public interface UserMapper extends BaseMapper<User> {

    /**
     * 分页查询用户表
     *
     * @param iPage
     * @param request
     * @return
     */
    IPage<UserInfo> pageQuery(Page<User> iPage, @Param("request") UserPageRequest request);

    /**
     * 详情查询用户表
     *
     * @param id
     * @return
     */
    UserInfo getById(@Param("id") Long id);

}
